package edu.buct.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ZYM
 * @since 2023-04-28
 */
@Data
@ApiModel(value = "Total对象", description = "")
public class Total implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("日期")
    private String date;
    //private LocalDateTime date;

    @ApiModelProperty("温度1")
    private Float temp1;

    @ApiModelProperty("湿度1")
    private Float humi1;

    @ApiModelProperty("温度2")
    private Float temp2;

    @ApiModelProperty("湿度2")
    private Float humi2;

    @ApiModelProperty("功率")
    private Float kw;

    @ApiModelProperty("视在功率")
    private Float kva;

    @ApiModelProperty("电能消耗")
    private Double kwh;

    @ApiModelProperty("频率")
    private Float hz;

    @ApiModelProperty("排碳量")
    private Double carbon;

    public Total() {
    }

    public Total(Integer id, String date, Float temp1, Float humi1, Float temp2, Float humi2, Float kw, Float kva, Double kwh, Float hz, Double carbon) {
        this.id = id;
        this.date = date;
        this.temp1 = temp1;
        this.humi1 = humi1;
        this.temp2 = temp2;
        this.humi2 = humi2;
        this.kw = kw;
        this.kva = kva;
        this.kwh = kwh;
        this.hz = hz;
        this.carbon = carbon;
    }

    @Override
    public String toString() {
        return "Total{" +
                "id=" + id +
                ", date='" + date + '\'' +
                ", temp1=" + temp1 +
                ", humi1=" + humi1 +
                ", temp2=" + temp2 +
                ", humi2=" + humi2 +
                ", kw=" + kw +
                ", kva=" + kva +
                ", kwh=" + kwh +
                ", hz=" + hz +
                ", carbon=" + carbon +
                '}';
    }
}
